package com.ruoyi.web.controller.common;

public class IVResult {

    private int code;

    private String msg;

    private String url;

    public static IVResult error(String msg){
        IVResult result =new IVResult();
        result.setCode(1000);
        result.setMsg(msg);
        return result;
    }

    public static IVResult success(String url){
        IVResult result =new IVResult();
        result.setCode(0);
        result.setMsg("认证成功");
        result.setUrl(url);
        return result;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
